<%@ page contentType="text/html; charset=gbk" language="java" import="java.sql.*,java.util.Vector" errorPage="" %>
<jsp:useBean id="filemanager"  class="MyFile.FileManager"/>
<jsp:useBean id="themexml"  class="xml.themexml"/>
<jsp:useBean id="EscapeUnescape"  class="basetools.EscapeUnescape"/>
<jsp:useBean id="base64"  class="basetools.Base64"/>
<%@ page import="java.util.Vector"%>
<%@ page import="java.io.File"%>
<%@ page import="java.io.*"%>
<%@ page import="org.jdom.*"%>
<%@ page import="org.jdom.output.*"%>
<%!int num,i,itemcount,themecount=0,j;String  currentuser="",enterprice="",filetype="",filename="",dirname="",english="",realname="",notjudge="",filepath="",notrepeat="";%>
<%
   notrepeat="";
   enterprice="";filetype="";filename="";dirname="";
   if(session.getAttribute("username")!=null){
      currentuser=(String)session.getValue("username");
   }
   if(session.getValue("enterprice")!=null){
      enterprice=(String)session.getValue("enterprice");
   }
   if(request.getParameter("enterprice")!=null){
      enterprice=new String(request.getParameter("enterprice").getBytes("iso-8859-1"),"gbk");
   }
   if(request.getParameter("filetype")!=null){
      filetype=new String(request.getParameter("filetype").getBytes("iso-8859-1"),"gbk");
   }
   if(request.getParameter("filename")!=null){
      filename=new String(request.getParameter("filename").getBytes("iso-8859-1"),"gbk");
   }
   if(request.getParameter("dirname")!=null){
      dirname=new String(request.getParameter("dirname").getBytes("iso-8859-1"),"gbk");
   }
   if(request.getParameter("realname")!=null){
      realname=new String(request.getParameter("realname").getBytes("iso-8859-1"),"gbk");
   }
   if(request.getParameter("english")!=null){
      english=new String(request.getParameter("english").getBytes("iso-8859-1"),"gbk");
   }
   notjudge="";
   if(request.getParameter("notjudge")!=null){
      notjudge=new String(request.getParameter("notjudge").getBytes("iso-8859-1"),"gbk");
   }
   if(request.getParameter("notrepeat")!=null){
      notrepeat=new String(request.getParameter("notrepeat").getBytes("iso-8859-1"),"gbk");
   }
   filepath=notjudge;
   System.out.println("ddd");
   System.out.println(notjudge);
   response.setContentType("text/html; charset=gbk");
   if(session.getAttribute("username")==null&&!notjudge.equals("1")){
      response.getWriter().write("fail");
   }else{
      filepath=filemanager.getpospath(base64.deescape(filetype),base64.deescape(filename),base64.deescape(dirname),enterprice,base64.deescape(realname),english,notrepeat);
      response.getWriter().write(filepath);
   }

%>
